package com.neugh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neugh.entity.Judge;
import com.neugh.mapper.JudgeMapper;
import com.neugh.service.JudgeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Service
public class JudgeServiceImpl extends ServiceImpl<JudgeMapper, Judge> implements JudgeService {


    @Override
    public List<Judge> selectJudgeById(int commId) {
        return this.baseMapper.selectJudgeById(commId);
    }

    @Override
    public Judge selectCommById(int commId) {
        return this.baseMapper.selectCommById(commId);
    }

    @Override
    public boolean insertJudge(String judgeContent, Integer commId) {
        return this.baseMapper.insertJudge(judgeContent,commId);
    }
}
